package com.kws.merchant.domain.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author :yxy
 * @date : 2024/10/30
 */
@Data
@ApiModel("设备评论输入表")
public class RemarkPo {
    @ApiModelProperty("父id")
    private Long pid;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("设备id-服务id")
    private Long id;
    @ApiModelProperty("评分")
    private Double score;
    @ApiModelProperty("标签0还不错 1一般")
    private Integer tag;
    @ApiModelProperty("评论图片，多张图片")
    private List<String> remarkImg;
    @ApiModelProperty("订单Id")
    private Long orderId;

    public Long getPid() {
        if (this.pid == null) {
            pid = 0l;
        }
        return pid;
    }


    public Double getScore() {
        if (this.score == null) {
            pid = 0l;
        }
        return score;
    }
}
